//
//  GTRaidersCell.m
//  GiftTalk
//
//  Created by Wan on 16/4/7.
//  Copyright © 2016年 Wan. All rights reserved.
//  攻略 cell

#import "GTRaidersCell.h"
#import "UIImageView+Extension.h"
#import "GTChannel.h"

@interface GTRaidersCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation GTRaidersCell

+ (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath {
    GTRaidersCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
    
    return cell;
}

- (void)setChannel:(GTChannel *)channel {
    _channel = channel;
    
    [self.iconView setImage:channel.icon_url placeHolder:@"defaultUserIcon"];
    self.nameLabel.text = channel.name;
}

- (void)awakeFromNib {
    // Initialization code
}

@end
